#pragma once
#include"Struct.h"
#include<vector>
#include<string>
using namespace std;

bool HasAvilableIndex(vector<struct_where> wh, struct_where &result);

void Traversal(CFile & file, int offset, vector<insert_model> &fields, vector<struct_where>& where);

void Traversal(CFile &file, int offset, vector<insert_model>&fields, vector<struct_where>&where,string& info);

void Traversal(CFile & file, CFile &temp_file,int offset, int lenth, vector<struct_where>& where);

bool MeetWhere(CFile&file, int offset, vector<struct_where>& where);

string Recover(CFile&file, int offset, string fields,int);

void updateInfo(CFile &file, int offset, insert_model &field);